package com.autologistics.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Ordertable entity. @author MyEclipse Persistence Tools
 */

public class Ordertable implements java.io.Serializable {

	// Fields

	private Integer id;
	private Disparter disparter;
	private Machine machine;
	private String orderId;
	private Integer state;
	private String receiverPhone;
	private Timestamp time;
	private Boolean heat;
	private String receiverName;
	private String receiverAddress;
	private Set goodsorders = new HashSet(0);
	private Set orderstates = new HashSet(0);

	// Constructors

	/** default constructor */
	public Ordertable() {
	}

	/** full constructor */
	public Ordertable(Disparter disparter, Machine machine, String orderId,
			Integer state, String receiverPhone, Timestamp time, Boolean heat,
			String receiverName, String receiverAddress, Set goodsorders,
			Set orderstates) {
		this.disparter = disparter;
		this.machine = machine;
		this.orderId = orderId;
		this.state = state;
		this.receiverPhone = receiverPhone;
		this.time = time;
		this.heat = heat;
		this.receiverName = receiverName;
		this.receiverAddress = receiverAddress;
		this.goodsorders = goodsorders;
		this.orderstates = orderstates;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Disparter getDisparter() {
		return this.disparter;
	}

	public void setDisparter(Disparter disparter) {
		this.disparter = disparter;
	}

	public Machine getMachine() {
		return this.machine;
	}

	public void setMachine(Machine machine) {
		this.machine = machine;
	}

	public String getOrderId() {
		return this.orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getReceiverPhone() {
		return this.receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public Timestamp getTime() {
		return this.time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public Boolean getHeat() {
		return this.heat;
	}

	public void setHeat(Boolean heat) {
		this.heat = heat;
	}

	public String getReceiverName() {
		return this.receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public String getReceiverAddress() {
		return this.receiverAddress;
	}

	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}

	public Set getGoodsorders() {
		return this.goodsorders;
	}

	public void setGoodsorders(Set goodsorders) {
		this.goodsorders = goodsorders;
	}

	public Set getOrderstates() {
		return this.orderstates;
	}

	public void setOrderstates(Set orderstates) {
		this.orderstates = orderstates;
	}

}